import localFont from './fonts/font.woff2'
/** 加载远程字体 */
export const loadRemoteFontFace = () => {
  let font = new FontFace("hlfine-font", `url(http://cdn.hlfine.com/fonts/font.woff2)`);

  font.load().then(() => {
    document.fonts.add(font);
  })
}

/** 加载本地字体 */
export const loadLocalFontFace = () => {
  let font = new FontFace("hlfine-font", `url(${localFont})`);

  font.load().then(() => {
    document.fonts.add(font);
  })
}

